using CommunityToolkit.Mvvm.ComponentModel;

namespace GetStartedApp.ViewModels;

public partial class ReactiveViewModel: ObservableObject {
    [ObservableProperty]
    private string _name;

    public string Greeting {
        get {
            if (string.IsNullOrEmpty(Name)) {
                return "Hello";
            } else {
                return $"Hello {Name}";
            }
        }
    }
}